﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Visa_infoSendForm.aspx.cs" Inherits="FS.Web.BLL.Visa_Base.Visa_infoSendForm" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title> 
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/Validator/JValidator.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/artDialog.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script type="text/javascript">
        function Fsave() {
            if (!CheckDataValid('#form1')) {
                return false;
            }
            if (!confirm('注：确认要全部送签吗？')) {
                return false;
            }
        }
    </script> 
         
</head>
<body>    
    <form id="form1" runat="server">
    <input id="Hinfo" type="hidden" runat="server"  />
    <input id="Hpricecode" type="hidden" runat="server"/>         
    <input id="HDetailID" type="hidden" runat="server"/>   
    <table border="0" cellpadding="0" cellspacing="0" class="frm">                
        <tr>
            <th>
                单号：
            </th>
            <td>
                <input id="info_no" runat="server" type="text" disabled="disabled" class="txt" style="width: 140px" />
            </td>                              
            <th>
                 签证状态：</th>                   
            <td>
                <input id="infoflag" runat="server" type="text" class="txt" disabled="disabled" style="width: 140px"  />
            </td>
             <th>
                送签时间：
            </th>
            <td>
               <input id="info_submitdate" runat="server" type="text" class="txt" style="width: 140px"
                   onfocus="WdatePicker({dateFmt: 'yyyy-MM-dd' })"   />
            </td>                   
        </tr>        
        <tr>
            <th>                
                委托方：
            </th>
            <td>
                <input id="trust_name" runat="server" type="text" class="txt" disabled="disabled" style="width: 140px"  />
            </td>
            <th>
                委托方类型：
            </th>
            <td>
                <input id="trusttype" runat="server" type="text" class="txt" disabled="disabled" style="width: 140px"  />               
            </td>
             <th>
                 业务员：
            </th>
            <td>
               <input id="info_operation" runat="server" type="text" class="txt"  style="width: 140px"  disabled="disabled"  />
            </td>
            
        </tr>
        <tr>
            <th>
                联系人：
            </th>
            <td>
                <input id="info_contactuser" runat="server" type="text" class="txt" disabled="disabled"  style="width: 140px" />
            </td>
            <th>
                联系方式：
            </th>
            <td>
               <input id="info_contactnumber" runat="server" type="text" class="txt" disabled="disabled" style="width: 140px" />
            </td>
            <th>
                资料齐全：
            </th>
            <td>
                <select id="Data_integrity" runat="server" class="select" style="width: 146px">
                    <option value="1">资料齐全</option>
                    <option value="0">资料未全</option>
                </select>               
            </td>
        </tr>             
    </table>
        
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div id ="detailsub" class="grid" style="height:400px; overflow:auto;">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" ShowHeaderWhenEmpty="True" Width="100%" BackColor="White" BorderColor="#CCCCCC" BorderStyle="Dashed" BorderWidth="1px" CellPadding="3" DataKeyNames="infodetail_id" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDataBound="GridView1_RowDataBound" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" >
                    <Columns>
                        <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" >
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="25px" />
                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="25px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="city_name" HeaderText="签证国家" ReadOnly="True" >
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="property_value" HeaderText="签证类型" ReadOnly="True" >
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="InfoDetai_BegPrice" HeaderText="签证费用" ReadOnly="True" >
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="infodetail_user" HeaderText="客户" ReadOnly="True" >
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                        </asp:BoundField> 
                        <asp:BoundField DataField="Supply_Name" HeaderText="供应商" ReadOnly="True" >
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="送签时间" >
                            <EditItemTemplate>
                                <asp:TextBox runat="server" ID="txt_submitdate" Text='<%# Bind("Submitdate") %>'  Width="100px"></asp:TextBox>
                            </EditItemTemplate>
                                <ItemTemplate>
                                <asp:Label ID="lb_submitdate" runat="server" Text='<%# Eval("Submitdate") %>' Width="100px"></asp:Label>                              
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="100px" />
                        </asp:TemplateField>                                
                        <asp:TemplateField HeaderText="资料齐全" >
                            <EditItemTemplate>
                                <asp:DropDownList ID="ddl_data" runat="server" Width="60px" AutoPostBack="false">
                                    <asp:ListItem Value="1">齐全</asp:ListItem>
                                    <asp:ListItem Value="0">不全</asp:ListItem>
                                </asp:DropDownList>
                                <asp:HiddenField ID="Hd_data" runat="server" Value='<%# Eval("Data_integrity")%>' /> 
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("dataname") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="60px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="infodetail_cardno" HeaderText="护照" ReadOnly="True" >
                        <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="infodetail_id" HeaderText="infodetail_id" SortExpression="infodetail_id" Visible="False" />
                        <asp:CommandField ShowEditButton="True" CancelText="取消" EditText="编辑" UpdateText="更新" >
                        <HeaderStyle Width="100px" />
                        </asp:CommandField>
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div> 
    
    <div class="frmbottom">       
        <asp:LinkButton ID="Save" runat="server" class="l-btn" OnClientClick="return Fsave();"
            OnClick="Save_Click"><span class="l-btn-left">
            <img src="/Themes/Images/save.png" alt="" />送 签</span></asp:LinkButton>
        <a class="l-btn" href="javascript:void(0)" onclick="OpenClose();"><span class="l-btn-left">
            <img src="/Themes/Images/cancel.png" alt="" />关 闭</span></a>       
    </div>
    </form>
</body>
</html>
